.web-element-selector-highlight {
  outline: 2px solid #2196f3 !important;
  background-color: rgba(33, 150, 243, 0.1) !important;
  cursor: pointer !important;
  z-index: 999999 !important;
  position: relative !important;
}

.web-element-selector-selected {
  outline: 2px solid #4caf50 !important;
  background-color: rgba(76, 175, 80, 0.1) !important;
  position: relative !important;
}

.web-element-selector-badge {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  background-color: #4caf50 !important;
  color: #fff !important;
  border-radius: 50% !important;
  min-width: 16px !important;
  height: 16px !important;
  line-height: 16px !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: bold !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
  z-index: 9999999 !important;
  pointer-events: none !important;
  user-select: none !important;
  font-family: Arial, sans-serif !important;
}

#web-element-selector-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 650px;
  max-height: 600px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000000;
  font-family: Arial, sans-serif;
  font-size: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#web-element-selector-header {
  background-color: #4285f4;
  color: white;
  padding: 10px 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#web-element-selector-url {
  margin: 10px 15px;
  font-size: 12px;
  color: #666;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#web-element-selector-list {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 400px;
  min-height: 50px;
  padding: 0 15px;
  flex: 0 1 auto;
}

.web-element-selector-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-wrap: nowrap;
  margin-right: 0;
}

.web-element-selector-header-row {
  display: flex;
  flex-wrap: nowrap;
  background-color: #f2f2f2;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  padding: 5px 0;
  margin-right: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f2f2f2;
}

.web-element-selector-header-cell {
  flex: 1;
  padding: 5px;
  text-align: left;
  min-width: 80px;
  font-size: 12px;
  border-right: 1px solid #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  user-select: none;
}

.web-element-selector-header-cell:last-child {
  border-right: none;
  background-color: transparent;
}

.web-element-selector-header-cell-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  cursor: col-resize;
  background-color: transparent;
}

.web-element-selector-cell {
  flex: 1;
  padding: 5px;
  min-width: 80px;
  font-size: 12px;
  border-right: 1px solid #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.web-element-selector-cell:last-child {
  border-right: none;
}

.web-element-selector-locator {
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.web-element-selector-locator-type {
  color: #4285f4;
  font-weight: bold;
}

.web-element-selector-locator-value {
  color: #333;
  font-family: monospace;
  word-break: break-all;
}

.web-element-selector-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.web-element-selector-table th {
  background-color: #f2f2f2;
  padding: 5px;
  text-align: left;
  font-weight: bold;
  border: 1px solid #ddd;
}

.web-element-selector-table td {
  padding: 5px;
  border: 1px solid #ddd;
  word-break: break-all;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#web-element-selector-actions {
  padding: 10px 15px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #eee;
  background-color: white;
  position: sticky;
  bottom: 0;
  margin-top: auto;
}

.web-element-selector-button {
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
}

.web-element-selector-button:hover {
  background-color: #3367d6;
}

.web-element-selector-tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  max-width: 300px;
  z-index: 10000001;
}

#web-element-selector-close {
  cursor: pointer;
  margin-left: 10px;
}